﻿@using xConnected.Common.ExpertProfile
@using xConnected.Common.Project
<div class="modal hide fade" id="DurationProjectDialog" style="display: none;" >
    <div class="modal-header">
    </div>
    <div class="modal-body" data-bind="with: workingPositionBuffer">
        <div class="control-group span6" data-bind="css: {'error': Duration.isValid() == false }" >
            <label class="control-label" for="Duration"><strong>@ProjectRes.Duration *</strong></label>
            <div class="controls">
                <input  type="text" class="span4" data-bind="value: Duration, valueUpdate: 'afterkeydown', executeOnEnter: $root.position.okDuration" tabindex="1" />
                <span class="help-inline" data-bind="validationMessage: Duration"></span>
            </div>
        </div>
    </div>
    <div class="modal-footer">
        <a href="#" class="btn btn-small btn-info" data-bind="click: function() { $root.position.okDuration();}"><strong>@Resources.Ok</strong></a>
        <a href="#" class="btn btn-small" data-bind="click: function() { $root.position.cancelDuration();}"><strong>@Resources.Cancel</strong></a>
    </div>
</div>